#include<iostream>
#include<cstdio>
using namespace std;
int  main(){
    double a1,a2,a3;
    cin>>a1>>a2>>a3;
    double temp=(a1+a2+a3)/3;
    printf("%.2lf %.2lf",a1+a2+a3,temp);
    return 0;
}
